package com.wxg.domain;

/**
 * @author void
 * @date 2019/12/11 15:25
 * @desc
 */
public interface MqConstant {

    enum Topic{
        TOPIC_VOID_1,
        TOPIC_VOID_2
    }

    enum Tag{
        TagA, TagB
    }

    enum Group{
        GID_VOID_1(Topic.TOPIC_VOID_1, Tag.TagA),
        GID_VOID_2(Topic.TOPIC_VOID_2, Tag.TagB)
        ;

        private Topic topic;
        private Tag tag;

        Group(Topic topic, Tag tag) {
            this.topic = topic;
            this.tag = tag;
        }

        public Topic getTopic() {
            return topic;
        }

        public Tag getTag() {
            return tag;
        }
    }

    enum MqType{
        rabbit,
        kafka,
        rocket,
        alirocket
    }
    
    int env = 1;
}
